package com.maoyu.cloud.api.config;

import com.obs.services.ObsClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ObsConfig {
    @Value("${obs.accessKey}")
    private String accessKey;

    @Value("${obs.secretKey}")
    private String secretKey;

    @Value("${obs.endPoint}")
    private String endPoint;

    @Bean
    public ObsClient obsClient() {
        return new ObsClient(accessKey, secretKey, endPoint);
    }
}

